package com.sengled.cloud.biz.union.mgt.common;

/**
 * Created by ti on 2017/10/24.
 */
public interface ResponseConstants {
    /**
     * 请求成功
     */
    public static final String RSP_CODE_SUCCESS = "200";
    public static final String RSP_INFO_SUCCESS = "OK";
    public static final String RSP_DESC_SUCCESS = "正常";

    /**
     * 系统错误
     */
    public static final String RSP_CODE_SERVICE_ERROR = "10001";
    public static final String RSP_INFO_SERVICE_ERROR = "System error";
    public static final String RSP_DESC_SERVICE_ERROR = "系统错误";

    /**
     * 参数错误
     */
    public static final String RSP_CODE_PARAM_LOST = "20002";
    public static final String RSP_INFO_PARAM_LOST = "Parameter error";
    public static final String RSP_DESC_PARAM_LOST = "参数错误";

    /**
     * 用户未登陆或Session过期
     */
    public static final String RSP_CODE_AUTH_ERROR = "20005";
    public static final String RSP_INFO_AUTH_ERROR = "Session expire or user not login";
    public static final String RSP_DESC_AUTH_ERROR = "用户未登陆或Session过期";

    /**
     * 执行失败
     */
    public static final String RSP_CODE_EXECUTE_FAIL = "20003";
    public static final String RSP_INFO_EXECUTE_FAIL = "Execute fail";
    public static final String RSP_DESC_EXECUTE_FAIL = "执行失败";

    /**
     * 文件上传失败
     */
    public static final String RSP_CODE_UPLOADFILE_FAIL = "20004";
    public static final String RSP_INFO_UPLOADFILE_FAIL = "Upload File fail";
    public static final String RSP_DESC_UPLOADFILE_FAIL = "文件上传失败";

    /**
     * 新增角色失败
     */
    public static final String RSP_CODE_ROLE_CODE_REPEAT_FAIL = "20005";
    public static final String RSP_INFO_ROLE_CODE_REPEAT_FAIL = "Role Code Repeat";
    public static final String RSP_DESC_ROLE_CODE_REPEAT_FAIL = "新增角色Code不能重复";

    /**
     * 应为用户没有角色导致登录失败
     */
    public static final String RSP_CODE_NO_ROLE_LOGIN_FAIL = "20006";
    public static final String RSP_INFO_NO_ROLE_LOGIN_FAIL = "No Role User Can't Login";
    public static final String RSP_DESC_NO_ROLE_LOGIN_FAIL = "没有角色的用户不允许登录";
    
    /**
     * 
     */
    public static final String RSP_CODE_ACCOUNT_NAME_REPEAT_FAIL = "20008";
    public static final String RSP_INFO_ACCOUNT_NAME_REPEAT_FAIL = "Account Name Repeat";
    public static final String RSP_DESC_ACCOUNT_NAME_REPEAT_FAIL = "账号名不能重复";
    
    
    public static final String RSP_CODE_SHOP_NAME_REPEAT_FAIL = "20009";
    public static final String RSP_INFO_SHOP_NAME_REPEAT_FAIL = "Shop Name Repeat";
    public static final String RSP_DESC_SHOP_NAME_REPEAT_FAIL = "店铺名不能重复";
    
    public static final String RSP_CODE_SHOP_CODE_REPEAT_FAIL = "20010";
    public static final String RSP_INFO_SHOP_CODE_REPEAT_FAIL = "Shop code Repeat";
    public static final String RSP_DESC_SHOP_CODE_REPEAT_FAIL = "该店铺code已经被使用过";
    
    public static final String RSP_CODE_USER_CODE_REPEAT_FAIL = "20011";
    public static final String RSP_INFO_USER_CODE_REPEAT_FAIL = "User code Repeat";
    public static final String RSP_DESC_USER_CODE_REPEAT_FAIL = "该人员code已经被使用过";

    public static final String RSP_CODE_USER_UN_LOGIN_FAIL = "20012";
    public static final String RSP_INFO_USER_UN_LOGIN_FAIL = "User Un Login";
    public static final String RSP_DESC_USER_UN_LOGIN_FAIL = "用户未登录";
    
    
    public static final String RSP_CODE_ACCOUNT_DELETE_SELF_FAIL = "20013";
    public static final String RSP_INFO_ACCOUNT_DELETE_SELF_FAIL = "Account Delete self";
    public static final String RSP_DESC_ACCOUNT_DELETE_SELF_FAIL = "当前用户不能删除自己";
}



